### `useScrollToLabel`

Scrolls to the label name you pass. Labels can be added with the `Waypoint` component.

#### Props

| Prop                  |   Type   |                                                      Details |
| :-------------------- | :------: | -----------------------------------------------------------: |
| `label`               | `string` |                      Height of the pinned element in the pin |
| [`opts`](#opts-props) |          | Optional: scroll config, can define `behaviour` and `offset` |

#### `opts` props

| Prop       |               Type                |                                           Details |
| :--------- | :-------------------------------: | ------------------------------------------------: |
| `behavior` | `"auto" \| "instant" \| "smooth"` |                          Sets scrolling behaviour |
| `offset`   |             `number`              | Sets scrolled distance offset relative to element |
